﻿using AdminApiTemplate.Infrastructures;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Promote.Infrastructures.Domains
{
    /// <summary>
    /// 用户的权限
    /// </summary>
    [Description("用户的权限")]
    [Table("UserPermission")]
    public class UserPermission : TableModelBase
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Description("用户Id,AdminUser表的Id")]
        public int? UserId { get; set; }

        /// <summary>
        /// 权限Id
        /// </summary>
        [Description("权限Id,Permission表的Id")]
        public int? PermissionId { get; set; }
    }
}
